package org.hzz.spring.code.service;

import lombok.extern.slf4j.Slf4j;
import org.hzz.spring.code.extensions.Pkmer;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

/**
 * @author 胖卡
 * @version 1.0.0
 * @date 2024/8/2
 */
@Slf4j
@Service("userService")
public class UserService implements InitializingBean {


    @Pkmer("userService#hello")
    public void hello(){
        log.info("Hello World from pkmer");
    }

    @Pkmer("userService#programming")
    public void programming(){
        String msg = "Love Java Coding with SpringBoot";
        log.info(msg);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("UserService初始化成功");
    }
}
